home *** CD-ROM | disk | FTP | other *** search
/ Aminet 41 / Aminet 41 (2001)(Schatztruhe)[!][Feb 2001].iso / Aminet / game / think / newmasterm_src.lha / newmastermind / boardgadget.h < prev    next >
C/C++ Source or Header  |  2000-11-08  |  1KB  |  44 lines

  1. /*
  2.  * boardgadget.h
  3.  * =============
  4.  * The board gadget.
  5.  *
  6.  * Copyright (C) 1994-2000 Håkan L. Younes (lorens@hem.passagen.se)
  7.  */
  8.  
  9. #ifndef BOARDGADGET_H
  10. #define BOARDGADGET_H
  11.  
  12. #include <exec/types.h>
  13. #include <utility/tagitem.h>
  14. #include <intuition/classes.h>
  15.  
  16.  
  17. typedef enum {
  18.   OPPONENT_HUMAN,
  19.   OPPONENT_COMPUTER
  20. } Opponent;
  21.  
  22. typedef enum {
  23.   CORRECTION_METHOD_CHILDREN,
  24.   CORRECTION_METHOD_ADULTS
  25. } CorrectionMethod;
  26.  
  27.  
  28. #define BOARD_Dummy              (TAG_USER + 0)
  29. #define BOARD_Opponent           (BOARD_Dummy + 1)
  30. #define BOARD_CorrectionMethod   (BOARD_Dummy + 2)
  31. #define BOARD_Panel              (BOARD_Dummy + 3)
  32. #define BOARD_EnterButton        (BOARD_Dummy + 4)
  33. #define BOARD_NewGame            (BOARD_Dummy + 5) /* PRIVATE! */
  34. #define BOARD_EnterRow           (BOARD_Dummy + 6) /* PRIVATE! */
  35.  
  36.  
  37. extern Class *CreateBoardClass(VOID);
  38.  
  39. extern VOID BoardNewGame(struct Gadget *board, struct Window *win,
  40.              Opponent opponent, CorrectionMethod corrMethod);
  41. extern VOID BoardEnterRow(struct Gadget *board, struct Window *win);
  42.  
  43. #endif /* BOARDGADGET_H */
  44.